pandas split column fixed width

31

df[['CCY1','CCY2']] = df.CCYPair.str.extract('(.{3})(.*)')

Comments

Submit
0 Comments